using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._AviationTools._Airports._ObstructionIdentificationSurfaces
{
    /// <summary>
    /// <para>Generate OIS Intersection</para>
    /// <para>Creates the most restrictive (lowest) surfaces within the extent of all collective surfaces. Obstruction identification surfaces (OIS) determine which objects are vertical obstructions. An object is considered a vertical obstruction if it penetrates the OIS surface. Surfaces are used to support planning and design activities.</para>
    /// <para>在所有集合曲面的范围内创建限制性最强（最低）的曲面。障碍物识别表面 （OIS） 确定哪些物体是垂直障碍物。如果物体穿透 OIS 表面，则该物体被视为垂直障碍物。曲面用于支持规划和设计活动。</para>
    /// </summary>    
    [DisplayName("Generate OIS Intersection")]
    public class GenerateOISIntersection : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public GenerateOISIntersection()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_ois_features">
        /// <para>Input OIS Features</para>
        /// <para>The input OIS features. The feature class must be multipatch.</para>
        /// <para>输入 OIS 功能。要素类必须为多面体。</para>
        /// </param>
        /// <param name="_out_ois_features">
        /// <para>Output OIS Features</para>
        /// <para>The updated feature class containing the meshed OIS with the lowest z-value.</para>
        /// <para>包含具有最低 z 值的网格化 OIS 的更新要素类。</para>
        /// </param>
        public GenerateOISIntersection(List<object> _in_ois_features, object _out_ois_features)
        {
            this._in_ois_features = _in_ois_features;
            this._out_ois_features = _out_ois_features;
        }
        public override string ToolboxName => "Aviation Tools";

        public override string ToolName => "Generate OIS Intersection";

        public override string CallName => "aviation.GenerateOISIntersection";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_ois_features, _out_ois_features, _multipart_feature.GetGPValue()];

        /// <summary>
        /// <para>Input OIS Features</para>
        /// <para>The input OIS features. The feature class must be multipatch.</para>
        /// <para>输入 OIS 功能。要素类必须为多面体。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input OIS Features")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public List<object> _in_ois_features { get; set; }


        /// <summary>
        /// <para>Output OIS Features</para>
        /// <para>The updated feature class containing the meshed OIS with the lowest z-value.</para>
        /// <para>包含具有最低 z 值的网格化 OIS 的更新要素类。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output OIS Features")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_ois_features { get; set; }


        /// <summary>
        /// <para>Create Multipart Feature</para>
        /// <para><xdoc>
        ///   <para>Specifies whether multipart features will be created in the output. Multipart features are composed of more than one physical part that only references one set of attributes.</para>
        ///   <bulletList>
        ///     <bullet_item>Checked—Multipart features will be created. This is default.</bullet_item><para/>
        ///     <bullet_item>Unchecked—Adjacent triangulated multipart features will be created as individual features.</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>指定是否在输出中创建分段要素。多部分要素由多个物理部分组成，这些物理部分仅引用一组属性。</para>
        ///   <bulletList>
        ///     <bullet_item>选中—将创建多部分要素。这是默认设置。</bullet_item><para/>
        ///     <bullet_item>未选中 - 相邻的三角化多部分要素将创建为单个要素。</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Create Multipart Feature")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _multipart_feature_value _multipart_feature { get; set; } = _multipart_feature_value._true;

        public enum _multipart_feature_value
        {
            /// <summary>
            /// <para>MULTIPART</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("MULTIPART")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>MERGE_ADJACENT</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("MERGE_ADJACENT")]
            [GPEnumValue("false")]
            _false,

        }

        public GenerateOISIntersection SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}